import React from 'react';

export const AxAnchorText: React.FC<any> = props => {
    const { value, onClick, ...rest } = props;

    const handleClick = (e: any) => {
        if (onClick) {
            e && e.stopPropagation();
            onClick(e);
        }
    }

    return (
        <a onClick={handleClick} style={{ textDecoration: 'underline' }} {...rest}>
            {value}
        </a>
    )
}